import bpy
from ogreEx.ui.header   .CINFO_HT_microheader           import INFO_HT_microheader
from ogreEx.ui.menu     .CMiniReport                    import MiniReport
from ogreEx.ui.operator .CINFO_OT_createOgreExport      import INFO_OT_createOgreExport
from ogreEx.ui.operator .CINFO_OT_createRealxtendExport import INFO_OT_createRealxtendExport
from ogreEx.ui.operator .COgreToggleInterfaceOp         import OgreToggleInterfaceOp

def get_minimal_interface_classes():
    return INFO_OT_createOgreExport, INFO_OT_createRealxtendExport, OgreToggleInterfaceOp, MiniReport, INFO_HT_microheader

def restore_minimal_interface():
    #if not hasattr( bpy.ops.ogre..   #always true
    for cls in get_minimal_interface_classes():
        try: bpy.utils.register_class( cls )
        except: pass
    return False

    try:
        bpy.utils.register_class( INFO_HT_microheader )
        for op in get_minimal_interface_classes(): bpy.utils.register_class( op )
        return False
    except:
        print( 'b2ogre minimal UI already setup' )
        return True

